package com.dp.future;

/**
 * @author 金鑫
 * 真实数据，其构造较慢
 */
public class RealData implements Data {

    protected final String content;
    
    public RealData(String para){
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < 10; i++) {
            sb.append(para);
            try {
                Thread.sleep(100);
            } catch (Exception e) {}
        }
        content = sb.toString();
    }
    
    @Override
    public String getContent() {
        return content;
    }

}
